import request from '@/utils/request';
import { HTTP_METHOD } from '@/utils/http';

const BASE_URL = '/auth';

/**
 * @export 获取银行授权状态
 * @return {*}
 */
export function getBankAuthStatus() {
  return request({
    url: `${BASE_URL}/status`,
    method: HTTP_METHOD.GET,
    baseURL: process.env.VUE_APP_RISK_ENGINE_BASE_API
  });
}

/**
 * @export 获取银行授权地址
 * @return {*}
 */
 export function getBankAuthURL() {
  return request({
    url: `${BASE_URL}/auth_url`,
    method: HTTP_METHOD.GET,
    baseURL: process.env.VUE_APP_RISK_ENGINE_BASE_API
  });
}
